﻿
namespace DO.DreamOnTrader
{
	/// <summary>
	/// 商品類別
	/// </summary>
	public class Product
	{
		/// <summary>
		/// 商品class建構式
		/// </summary>
		/// <param name="productName">產品代號</param>
		/// <param name="net">每點數價值</param>
		/// <param name="fee">手續費</param>
		/// <param name="taxRatio">稅率</param>
		/// <param name="money">保證金</param>
		/// <param name="quoteName">報價代碼</param>
		protected internal Product(string productName,int net, int fee, float taxRatio, int money, string quoteName)
		{
			ProductName = productName;
			QuoteName = quoteName;
			NET = net; FEE = fee; TaxRatio = taxRatio; Money = money;
		}

		/// <summary>
		/// 產品代號
		/// </summary>
		public string ProductName { get; private set; }

		/// <summary>
		/// 每點數的價格
		/// </summary>
		public int NET { get; private set; }

		/// <summary>
		/// 手續費
		/// </summary>
		public int FEE { get; private set; }

		/// <summary>
		/// 稅率
		/// </summary>
		public float TaxRatio { get; private set; }

		/// <summary>
		/// 保證金
		/// </summary>
		public int Money { get; private set; }

		/// <summary>
		/// 訂閱報價代號
		/// </summary>
		public string QuoteName { get; private set; }


		public override string ToString()
		{
			return ProductName;
		}
	}
}
